/*
 * @Author: Kingsley 
 * @Date: 2018-10-28 22:08:54 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-10-28 22:41:41
 */
import _axios from "@/utils/requestUtil";
import _urlConfig from "@/config/PayURLConfig";

class Pay {
  /**
   *
   * @param {*} orderNo:订单号
   */
  pay(orderNo) {
    return _axios.request({
      url: _urlConfig.pay,
      data: {
        orderNo: orderNo
      },
      method: "post"
    });
  }

  /**
   * 支付回调,检查是否已经支付成功
   */
  queryOrderStatus(orderNo) {
    return _axios.request({
      url: _urlConfig.queryOrderStatus,
      data: {
        orderNo: orderNo
      },
      method: "post"
    });
  }
}
export default Pay;
